<template>
  <div class="nav">
    <div class="container">
      <!-- 轮播 -->
      <div class="box">
      <div class="item-big">
        <el-carousel :interval="3000" arrow="always">
          <el-carousel-item v-for="(item,index) in items" :key="index">
            <img :src="item" alt="">
          </el-carousel-item>
        </el-carousel>
      </div>
      <div class="item-small">
        <img src="http://app003.bacms.cn/upload/newsad/20190422102539.png" alt="" style="margin-left:0px">
        <img src="http://app003.bacms.cn/upload/newsad/20190420062705.jpg" alt="">
        <img src="http://app003.bacms.cn/upload/newsad/20190420062805.jpg" alt="" style="margin-right:0px">
      </div>
      <div class="cxk">
        <div>
          <span></span>
          <h2>今日热门游戏推荐</h2>
        </div>
        <a href="https://s.51.com/server_list?from_ly=51www2020_jingpin_362035">
        <img src="https://cdn.51img3.com/game/2022/202211/20221109/f5eb6795ab45fc1e5badf197afea953a.gif" alt="">
        </a>
      </div>
      </div>

<!-- 评测 -->
      <div class="banner">
        <div class="new">
          <span>新游评测</span>
          <router-link to="/">查看更多&gt;</router-link>
          <div>
            <div>
              <span>9.9</span><br>
              <span>推荐游戏</span>
              <img src="http://app003.bacms.cn/upload/gmlogo/20190420062310.png" alt="">
            </div>
            <div class="word">
              <span>火影:忍界究极对决阵容推荐</span>
              <router-link to="">影忍者这款游戏中的阵容是非常重要的，本次香磷就为大家带来了火影忍者首充党阵容推荐，非常实用的组合，还不了解游戏的朋友可以进行参考，希望能帮到大家。</router-link>
            </div>
          </div>
          <div>
            <div>
              <span>9.9</span><br>
              <span>推荐游戏</span>
              <img src="http://app003.bacms.cn/upload/gmlogo/20190420062310.png" alt="">
            </div>
            <div class="word">
              <span>火影:忍界究极对决阵容推荐</span>
              <router-link to="">影忍者这款游戏中的阵容是非常重要的，本次香磷就为大家带来了火影忍者首充党阵容推荐，非常实用的组合，还不了解游戏的朋友可以进行参考，希望能帮到大家。</router-link>
            </div>
          </div>
          <div>
            <div>
              <span>9.9</span><br>
              <span>推荐游戏</span>
              <img src="http://app003.bacms.cn/upload/gmlogo/20190420062310.png" alt="">
            </div>
            <div class="word">
              <span>火影:忍界究极对决阵容推荐</span>
              <router-link to="">影忍者这款游戏中的阵容是非常重要的，本次香磷就为大家带来了火影忍者首充党阵容推荐，非常实用的组合，还不了解游戏的朋友可以进行参考，希望能帮到大家。</router-link>
            </div>
          </div>
        </div>

<!-- 开服表 -->
        <div class="kfb">
          <p>新游开服表</p>
          <table>
            <thead>
              <tr>
                <td>时间</td>
                <td>游戏名称</td>
                <td>系统类型</td>
                <td>服务器</td>
              </tr>
            </thead>
            <tbody>
              <tr>
                <td>04-30</td>
                <td>我叫MT4-混沌之战</td>
                <td>安卓</td>
                <td>手Q互通108区戴克里先</td>
              </tr>
              <tr>
                <td>04-30</td>
                <td>我叫MT4-混沌之战</td>
                <td>安卓</td>
                <td>手Q互通108区戴克里先</td>
              </tr>
              <tr>
                <td>04-30</td>
                <td>我叫MT4-混沌之战</td>
                <td>安卓</td>
                <td>手Q互通108区戴克里先</td>
              </tr>
              <tr>
                <td>04-30</td>
                <td>我叫MT4-混沌之战</td>
                <td>安卓</td>
                <td>手Q互通108区戴克里先</td>
              </tr>
              <tr>
                <td>04-30</td>
                <td>我叫MT4-混沌之战</td>
                <td>安卓</td>
                <td>手Q互通108区戴克里先</td>
              </tr>
              <tr>
                <td>04-30</td>
                <td>我叫MT4-混沌之战</td>
                <td>安卓</td>
                <td>手Q互通108区戴克里先</td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>

<!-- 榜单 -->
      <div class="game">
        
        <div class="tuijian">
            <a>更多+</a>
            <p>推荐榜</p>
            <div>
              <div>
                <span>1</span>
                <p></p>
              </div>
              <div>
                <a href="">
                  <img src="http://app003.bacms.cn/upload/gmlogo/20190418060321.png" alt="">
                </a>
              </div>
              <div>
                <a href="">完美世界3D</a>
                <p>类型:角色</p>
                <a href="/giftbag">领取礼包</a><a href="">游戏下载</a>
              </div>
            </div>
          </div>

        <div class="newgame">
            <a>更多+</a>
            <p>新游榜</p>
            <div>
              <div>
                <span>1</span>
                <p></p>
              </div>
              <div>
                <a href="">
                  <img src="http://app003.bacms.cn/upload/gmlogo/20190420115519.png" alt="">
                </a>
              </div>
              <div>
                <a href="">王者荣耀</a>
                <p>类型:角色</p>
                <a href="/giftbag">领取礼包</a><a href="">游戏下载</a>
              </div>
            </div>
        </div>

        <div class="download">
            <a>更多+</a>
            <p>下载榜</p>
            <div>
              <div>
                <span>1</span>
                <p></p>
              </div>
              <div>
                <a href="">
                  <img src="	http://app003.bacms.cn/upload/gmlogo/20190514044511.png" alt="">
                </a>
              </div>
              <div>
                <a href="">三生三世十里桃花</a>
                <p>类型:角色</p>
                <a href="/giftbag">领取礼包</a><a href="">游戏下载</a>
              </div>
            </div>
        </div>
      </div>

    </div>
  </div>
</template>


<script>
import axios from 'axios'
  export default {
    data() {
      return {
        items: ['http://app003.bacms.cn/upload/newsad/20190422102539.png','	http://app003.bacms.cn/upload/newsad/20190420062705.jpg','http://app003.bacms.cn/upload/newsad/20190420062805.jpg'],
        detail:[]
      }
    },
    methods: {
      get_img() {
        let url= `http://127.0.0.1:3100/game`
        axios.get(url).then((res) => {
          console.log(res);
          this.detail = res.data.data;
      });
      }
    },
    mounted () {
      this.get_img();
    },
  }
</script>

<style src="../assets/css/reset1.css">
</style>
<style lang="scss" scoped>
.nav{
  background-color: #f3f3f3;
  padding:20px 0;

  .container{
  width: 1200px;
  margin: 0 auto;
  background-color: #f3f3f3;
  padding-left: 0;
  .box{
    position: relative;
    width: 100%;
    >.item-big{
      width: 700px;
      height: 300px;
      img{
        width: 700px;
      }
    }
    >.item-small{
      width: 700px;
      img{
        height: 120px;
        width: 226px;
        margin: 5px;
      }
    }
    >.cxk{
      position: absolute;
      left:710px;
      top:0;
      width: 490px;
      >div{
        border-bottom: 1px solid #d2d2d2;
        >span:first-child{
            float:left;
            width: 10px;
            height: 30px;
            margin-right: 0;
            border-left: 3px solid #e60012;
            border-bottom: 1px solid #fff;
          }
        >h2{
          font-size:1.5em;
          font-weight: normal;
          display: inline-block;
          padding-bottom: 6px;
          border-bottom:1px solid #e60012;
        }
      }
      >a{
        >img{
          margin-top:10px;
          height: 390px;
        }
      }
    }
  }

  .banner{
    margin: 10px;
    display: flex;
    justify-content:space-between;
    // width: 690px;
    >.new{
      border-top:2px solid #ff7044;
      padding-top: 10px;
      width: 700px;
      >span:nth-child(1){
        padding-left: 2px;
        font-size: 1.5em;
        font-weight: normal;
        margin-right: 500px;
      }
      >a:nth-child(2){
        font-size: 1em;
        font-weight:bold;
        :hover{
          color:aqua;
        }
      }
    >div{
      position: relative;
      margin-top:10px ;
      background-color: #eee;
      border-bottom: 1px dashed #E5E5E5;
      >div:nth-child(1){
        width: 160px;
        height: 60px;
        margin: 0;
        position: relative;
        padding: 15px;
        border: 1px solid rgba(0,0,0,.1);
        >span:nth-child(1){
          color:#ff6600;
          font-size: 2.5em;
          margin: 0;
          display:inline-block;
        }
        >span:nth-child(2){
          margin-top:10px ;
          font-size: 1.2em;
        }
        >img{
          width: 80px;
          height: 80px;
          position:absolute;
          left:90px;
          top:5px;
        }
      }
      >.word{
        margin-top:10px;
        position: absolute;
        left:200px;
        top:0;
        display: flex;
        flex-direction: column;
        >span{
          font-size: 1.6em;
          margin: 0;
        }
        >a{
          margin-top: 5px;
          font-size:0.9em;
          line-height: 1.5em;
        }
      }
    }
    }
    >.kfb{
      margin-left:20px;
      width: 490px;
      >p{
        font-size: 1.5em;
        font-weight: normal;
        border-top:2px solid #ff7044;
        line-height: 40px;
      }
      >table{
        margin-top:20px;
        width: 100%;
        >thead{
          td{
            overflow: hidden;
            border-bottom: 1px dashed #EBEBEB;
            padding: 7px 0;
            line-height: 19px;
            cursor: pointer;
            text-align: center;
          }
        }
        >tbody{
          td{
            overflow: hidden;
            border-bottom: 1px dashed #eee;
            padding: 7px 0;
            line-height: 19px;
            cursor: pointer;
            text-align: center;
          }
        }
      }

    }
  }

  .game{
    width: 100%;
    margin:40px 20px 0 0;
    display: flex;
    justify-content:center;
    >.tuijian{
      width: 380px;
      margin:20px 20px 0 0;
      >p{
        font-size: 1.5em;
        padding-left:50px;
        border-bottom: 2px solid #EBEBEB;
        color:#a8c75d;
        padding-bottom: 10px;
      }
      >a{
        color:#a8c75d;
        float:right;
        margin-top:10px;
      }
      >div{
        >div:nth-child(1){
          font-size: 16px;
          float: left;
          margin:40px 0;
          padding-left:5px;
          position: relative;

          >span:first-child{
          background-color: #f00;
          color:#fff;
          font-size:1.5em;
          padding:5px;
          }
          >p:last-child{
            border:10px solid #f00;
            border-bottom: 10px solid transparent;
          }
        }
        >div:nth-child(2){
          float:left;
          margin:20px 0;
          >a{
            padding-left:20px;
            >img{
              border-radius: 15px;
              width:80px;
            }
          }
        }
        >div:nth-child(3){
          width: 220px;
          float:left;
          margin:20px 0;
          padding-left:30px;
          >a:nth-child(1){
            font-size:1.5em;
            font-weight:normal;
            color:#000;
          }
          >p:nth-child(2){
            color:gray;
            line-height:40px;
          }
          >a:nth-child(3){
            color:#EF5C5C;
            border:1px solid #EF5C5C;
            border-radius: 13px;
            padding:5px 15px;
          }
          >a:nth-child(4){
            color:#1da7ff;
            border:1px solid #1da7ff;
            border-radius: 13px;
            padding:5px 15px;
            margin-left:10px;
          }
        }
      }
    }
    >.newgame{
      width: 380px;
      margin:20px 20px 0 0;
      >p{
        font-size: 1.5em;
        padding-left:50px;
        border-bottom: 2px solid #EBEBEB;
        color:#2797ff;
        padding-bottom: 10px;
      }
      >a{
        color:#2797ff;
        float:right;
        margin-top:10px;
      }
      >div{
        >div:nth-child(1){
          font-size: 16px;
          float: left;
          margin:40px 0;
          padding-left:5px;
          position: relative;

          >span:first-child{
          background-color: #f00;
          color:#fff;
          font-size:1.5em;
          padding:5px;
          }
          >p:last-child{
            border:10px solid #f00;
            border-bottom: 10px solid transparent;
          }
        }
        >div:nth-child(2){
          float:left;
          margin:20px 0;
          >a{
            padding-left:20px;
            >img{
              border-radius: 15px;
              width:80px;
            }
          }
        }
        >div:nth-child(3){
          width: 220px;
          float:left;
          margin:20px 0;
          padding-left:30px;
          >a:nth-child(1){
            font-size:1.5em;
            font-weight:normal;
            color:#000;
          }
          >p:nth-child(2){
            color:gray;
            line-height:40px;
          }
          >a:nth-child(3){
            color:#EF5C5C;
            border:1px solid #EF5C5C;
            border-radius: 13px;
            padding:5px 15px;
          }
          >a:nth-child(4){
            color:#1da7ff;
            border:1px solid #1da7ff;
            border-radius: 13px;
            padding:5px 15px;
            margin-left:10px;
          }
        }
      }
    }
    >.download{
      width: 380px;
      margin:20px 20px 0 0;
      >p{
        font-size: 1.5em;
        padding-left:50px;
        border-bottom: 2px solid #EBEBEB;
        color:#f46c6c;
        padding-bottom: 10px;
      }
      >a{
        color:#f46c6c;
        float:right;
        margin-top:10px;
      }
      >div{
        >div:nth-child(1){
          font-size: 16px;
          float: left;
          margin:40px 0;
          padding-left:5px;
          position: relative;

          >span:first-child{
          background-color: #f00;
          color:#fff;
          font-size:1.5em;
          padding:5px;
          }
          >p:last-child{
            border:10px solid #f00;
            border-bottom: 10px solid transparent;
          }
        }
        >div:nth-child(2){
          float:left;
          margin:20px 0;
          >a{
            padding-left:20px;
            >img{
              border-radius: 15px;
              width:80px;
            }
          }
        }
        >div:nth-child(3){
          width: 220px;
          float:left;
          margin:20px 0;
          padding-left:30px;
          >a:nth-child(1){
            font-size:1.5em;
            font-weight:normal;
            color:#000;
          }
          >p:nth-child(2){
            color:gray;
            line-height:40px;
          }
          >a:nth-child(3){
            color:#EF5C5C;
            border:1px solid #EF5C5C;
            border-radius: 13px;
            padding:5px 15px;
          }
          >a:nth-child(4){
            color:#1da7ff;
            border:1px solid #1da7ff;
            border-radius: 13px;
            padding:5px 15px;
            margin-left:10px;
          }
        }
      }
    }
      }



    }
  }
</style>